/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.general.util;

import java.math.BigDecimal;

/**
 *
 * @author Claudio
 */
public class Pruebas {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        BigDecimal disp = new BigDecimal(200);
        BigDecimal stock = new BigDecimal(201);

        if(stock.compareTo(BigDecimal.ZERO)>0){
            System.err.println("El stock positivo");
            stock = stock.negate();
        }

        System.out.println("Disponible:" + disp);
        System.out.println("Stock:" + stock);

        System.out.println("comparacion:" + disp.add(stock).compareTo(BigDecimal.ZERO));
//      System.out.println("Claves " + modcom[1] + codcom[1]);

    }

}
